package com.allwees.support.fileservice.upload;

import lombok.Data;

/**
 * bucket信息
 */
@Data
public class BucketInfo {

    private String bucket;
    private String dir;
    private boolean user;

    public BucketInfo(AliossBucketEnum bucketEnum) {
        this.bucket = bucketEnum.getBucket();
        this.dir = bucketEnum.getDir();
        this.user = bucketEnum.isUser();
    }

    public BucketInfo(String bucket, String dir, boolean user) {
        this.bucket = bucket;
        this.dir = dir;
        this.user = user;
    }
}
